package ;
import php.Lib;
import php.NativeArray;

/**
 * ...
 * @author Axel Huizinga axel@cunity.me
 */

class Util 
{

	public static function getFilesInfo():Hash <Hash<Array<Dynamic>>>
	{
		var files:Hash<NativeArray> = Lib.hashOfAssociativeArray(untyped __php__("$_FILES"));
		var output:Hash < Hash < Array<Dynamic> >> = new Hash();
		
		for (file in files.keys())
			output.set(file, Lib.hashOfAssociativeArray(files.get(file)));	
		
		return output;
	}
	
}